package com.xinqi.modules.chat.favorite.dto.req;

import com.xinqi.common.green.annotation.Text;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 收藏标签表-请求对象-修改
 *
 * @author: yyzhen
 * @date: 2023/03/23
 */
@Data
public class FavoriteTagUpdateDTO implements Serializable {

    /**
     * 主键
     */
    @NotNull(message = "{chat.favorite.tag.id.not.blank}")
    private Long id;
    /**
     * 标题
     */
    @Text
    @NotEmpty(message = "{chat.favorite.tag.title.not.blank}")
    @Size(min = 1, max = 10, message = "{chat.favorite.tag.title.length.valid}")
    private String title;

    @Schema(title = "操作用户ID(内部流转参数，不对外)", hidden = true)
    private Long operationUserId;
}
